package dialer.ws.base.entity.vtelcom;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import dialer.ws.base.entity.Calls;

/**
 * BaseCall entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "base_call", schema = "vtelcom_call_center")
public class BaseCall implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9217264814595878176L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	private Integer id;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_master", nullable = false)
	private Master master;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_base_detail", nullable = false)
	private BaseDetail baseDetail;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_call", nullable = false)
	private Calls call;

	@Column(name = "groupId", nullable = false)
	private Integer groupId;

	/** default constructor */
	public BaseCall() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Calls getCall() {
		return call;
	}

	public void setCall(Calls call) {
		this.call = call;
	}

	public Integer getGroupId() {
		return groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	public Master getMaster() {
		return master;
	}

	public void setMaster(Master master) {
		this.master = master;
	}

	public BaseDetail getBaseDetail() {
		return baseDetail;
	}

	public void setBaseDetail(BaseDetail baseDetail) {
		this.baseDetail = baseDetail;
	}

}